@import '~default.less';
.web-modal {
  &-embed {
    position: relative;
    height: 100%;
    &-header {
      height: 36px;
      line-height: 36px;
      margin-right: 36px;
      border-bottom: 1px solid @border-color-base;
      .web-modal-icon{
        margin:4px 8px;
      }
      .ant-modal-title{
        height: 36px;
        line-height: 36px;
      }
    }
    &-body {
      padding: 16px;
    }
    &-title {
      font-size: 14px;
      font-weight: 500;
      line-height: 28px;
      height: 28px;
      margin: 3px 0 4px 8px;
      color: rgba(0, 0, 0, 0.85);
      .web-modal-icon i {
        margin-top: 2px;
      }
      .ant-layout-sider{
        background: transparent;
      }
    }
    .ant-modal-close {
      border-left: 1px solid @border-color-base;
      .ant-modal-close-x {
        width: 36px;
        height: 35px;
        line-height: 36px;
        &:hover {
          background: @background-color-base;
        }
      }
    }
  }
  .ant-modal {
    position: fixed;
    top: 50px;
    right: 0;
    bottom: 0;
    min-width: 1000px;
    width:50%;
    padding: 0;
    .ant-modal-close {
      border-left: 1px solid #e9e9e9;
      top: -1px;
      &:hover {
        background: @background-color-base;
      }
    }
    .ant-modal-content {
      height: 100%;
      border-radius: 0;
      .ant-modal-header {
        border-radius: 0;
        height: 48px;
        padding: 10px 48px 10px 16px;
        .ant-modal-title {
          .ant-layout {
            background: transparent;
            .ant-layout-content,
            .ant-layout-sider {
              background: transparent;
            }
          }
        }
      }
      .ant-modal-footer {
        display: none;
      }
      .ant-modal-body {
        overflow-y: auto;
        height: ~'calc(100% - 48px)';
      }
    }
  }
  &-icon {
    margin-right: 8px;
    i {
      font-size: 24px;
      margin: -2px;
    }
  }
}
